<?php

defined( '_AppMiage' ) or die( 'Restricted access' );
if(isset($_GET['id']) && !empty($_GET['id']) && isset($_GET['signataire']) && $_GET['signataire'] != "")
{
    $stage = new Stage($_GET['id']);
    switch($_GET['signataire']){
        case "UFR" : $stage->setSignatureUFR(time());
            break;
        case "Responsable" : $stage->setSignatureResponsable(time());
            break;
        case "Entreprise" : $stage->setSignatureEntreprise(time());
            break;
        case "Etudiant" : $stage->setSignatureEtudiant(time());
            break;
        case "RelationInternational" : $stage->setSignatureRelationInternational(time());
            break;
    }
    $stage->updateStage();
}
?>
